from flask import Flask,request
from app.app import create_app
from config.settings import DEBUG,HOST,PORT


app = create_app()
# ctx = app.app_context()
# ctx.push()

# from router import view01
# from router.student import stu1
# import router

from flask_migrate import Migrate
from model import db
migrate = Migrate(app,db)

if __name__ == "__main__":
        app.run(debug=app.config.get("DEBUG"),
                host=app.config.get("HOST"),
                port=app.config.get("PORT"))


